home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3600 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: oxy.rust.net!usenet
  2. From: ebennett@rust.net
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: problem with name mangling in BC4.5 ( extern "C" ? )
  5. Date: Thu, 25 Jan 1996 04:01:29 GMT
  6. Organization: Rust Net - High Speed Internet in Detroit  810-642-2276
  7. Message-ID: <4e6kok$ela@oxy.rust.net>
  8. References: <4e629n$bi4@access2.digex.net>
  9. NNTP-Posting-Host: liv-18.rust.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. dave@access2.digex.net (Dave Eidman) wrote:
  13.  
  14. >If anyone can shed some light on the following problem, I would appreciated it.
  15.  
  16. >In Borland C++ 4.5, 
  17. >   
  18. >   I am able to compile and execute the following example that comes from 
  19. >   Chap. 19 in the Petzold book "Programing Windows 3.1" using the 
  20. >   DOS command line,
  21.  
  22. >   bcc -c -ms! -w-par -P -W -2 strlib.c
  23.  
  24. >   But utilizing the IDE, I encounter the indicated errors when the code
  25. >   attempts to turn off name mangling for exported functions.
  26.  
  27. There are a couple of ways to handle this.  The easiest is to change
  28. the name of strlib.c to strlib.cpp.  The other is to dig down into the
  29. Tools menu in the IDE and change the default processor for files with
  30. an extension of .C from the C compiler to the C++ compiler.
  31.  
  32. Earl Bennett
  33.  
  34.  
  35.